#include<iostream>
#include<cstring>
using namespace std;

int main()
{
	int a[5] = {1, 2, 3, 4, 5};
	int b[5] = {0};
	for (auto i : b)
		cout << i << " ";
	cout << endl;
	
	memcpy(b, a, sizeof(a));
	for (auto i : b)
		cout << i << " ";
	cout << endl;
	
	return 0;
} 
